package com.aspose.cells.a.d;

public abstract class zdm {
   public com.aspose.cells.b.a.d.zh a(com.aspose.cells.b.a.d.zh var1) throws Exception {
      com.aspose.cells.b.a.d.zh var2 = new com.aspose.cells.b.a.d.zh();
      zds var3 = this.a((com.aspose.cells.b.a.d.zm)var2);
      var1.a((com.aspose.cells.b.a.d.zm)var3);
      com.aspose.cells.b.a.d.zh var4 = new com.aspose.cells.b.a.d.zh(var2.m(), 0, (int)var2.h());
      var3.a();
      return var4;
   }

   public void a(zeg var1) throws Exception {
      var1.a("/Filter", com.aspose.cells.b.a.zv.a("/{0}", this.a()));
   }

   public static zdm a(int var0, int var1) throws Exception {
      switch(var0) {
      case 0:
         return null;
      case 1:
      case 2:
      case 7:
      default:
         throw new Exception("Unknown filter type.");
      case 3:
         return new zdq();
      case 4:
         return new zdp();
      case 5:
         return new zdr();
      case 6:
         return new zdn(var1);
      case 8:
         return new zdo();
      }
   }

   protected abstract zds a(com.aspose.cells.b.a.d.zm var1) throws Exception;

   protected abstract String a();
}
